package com.ravi.model.vo;

import com.ravi.model.entity.CheckDailyPatient;
import lombok.Data;

import java.io.Serializable;
import java.math.BigInteger;

@Data
public class PatientVo implements Serializable {

	private BigInteger checkupNo;

	private String name;

	private String sex;

	private String priority;

	public PatientVo(CheckDailyPatient patient) {
		this.checkupNo = patient.getCheckupNo();
		this.name = patient.getName();
		if (patient.getSex().equals(1)) {
			this.sex = "男";
		}else {
			this.sex = "女";
		}
		if (patient.getLevel() >= 1) {
			this.priority = "VIP";
		}else {
			this.priority = "普";
		}
	}

}
